import React, { Fragment } from 'react';
import './showHelo.css';

class ShowHello extends React.Component {
  constructor(props){
    super(props);   
  }
  componentDidMount() {
    console.log('testDemo', this.props);
  }

  show() {
    toast.info('去吧');
    this.props.history.push('./PeakValleyElectricityDel');
    console.log('goahead');
  }

  render() {
    return (
      <Fragment>
        <div onClick={() => this.show()}>
          <div className={'popover-buttonyj'}>
            <div className={'popoverTit-button'}>
              <div className={'popoverTit-button-t'}>
                <span>Hello,adadasdasdasd{this.props.name}</span>
              </div>
            </div>
          </div>
        </div>
      </Fragment>
    );
  }
}

export default ShowHello;